package com.kaili.basic.pojo.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * Created by xxx on 2019-03-07.
 */
@Data
public class WarehousingProductDto {
    @ApiModelProperty(name = "id", value = "主键id")
    private Long id;

    @ApiModelProperty(name = "productId", value = "产品id")
    private Long productId;

    @ApiModelProperty(name = "productCode", value = "产品编号")
    private String productCode;

    @ApiModelProperty(name = "productName", value = "产品名称")
    private String productName;

    @ApiModelProperty(name = "format", value = "规格")
    private String format;

    @ApiModelProperty(name = "quantity", value = "数量")
    private Integer quantity;

    @ApiModelProperty(name = "inWeight", value = "重量")
    private Double inWeight;

    @ApiModelProperty(name = "inVolume", value = "体积")
    private Double inVolume;

    @ApiModelProperty(name = "tray", value = "托盘")
    private Integer tray;

    @ApiModelProperty(name = "batch", value = "批次 yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss")
    private Date batch;

    @ApiModelProperty(name = "expirationTime", value = "过期时间 yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss")
    private Date expirationTime;

    @ApiModelProperty(name = "unit", value = "单位")
    private String unit;

    @ApiModelProperty(name = "unitPrice", value = "单价")
    private Double unitPrice;
}
